set :application, "memberdb"
set :user, "app"
set :repository,  "http://greene-hill-food-coop.googlecode.com/svn/trunk/memberdb"

set :deploy_to, "/var/local/apps/#{application}"

set :scm, :subversion

server "members.greenehillfoodcoop.com", :app, :web, :db, :primary => true

#############################################################
# Passenger (mod_rails)
# http://www.modrails.com/documentation/Users%20guide.html#capistrano
#############################################################
namespace :deploy do
  desc "Restarting mod_rails with restart.txt"
  task :restart, :roles => :app, :except => { :no_release => true } do
    run "touch #{current_path}/tmp/restart.txt"
  end
end